package org.example.service.impl;

public class UserServiceImpl implements UserService {
    private UserDao userDao;
    private BookDao bookDao;
    public void setUserDaoname(UserDao userDao){
        this.userDao = userDao;
    }
    public void setBookDaoname(BookDao bookDao){
        this.bookDao = bookDao;
    }
    public void save() {
        System.out.println("xxxx");
//        bookDao.bookSave();
//        userDao.save();
    }
    public void destroy() throws Exception {
        System.out.println("service destroy");
    }

    public void afterPropertiesSet() throws Exception {
        System.out.println("service init");
    }
}
